package com.scapegoat.pay.user.service.dao.impl;

import java.util.HashMap;
import java.util.Map;

import com.scapegoat.pay.user.service.dao.RpUserPayConfigDao;
import com.scapegoat.pay.user.service.entity.RpUserPayConfig;
import org.springframework.stereotype.Repository;
import com.scapegoat.pay.common.core.dao.impl.BaseDaoImpl;
import com.scapegoat.pay.common.core.enums.PublicStatusEnum;


/**
 * 用户支付配置dao实现类
 *
 * @author walkman
 * @date 2017年10月17日 20:57:55
 */
@Repository
public class RpUserPayConfigDaoImpl extends BaseDaoImpl<RpUserPayConfig> implements RpUserPayConfigDao {
    @Override
    public RpUserPayConfig getByUserNo(String userNo, String auditStatus) {
        Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("userNo", userNo);
        paramMap.put("status", PublicStatusEnum.ACTIVE.name());
        paramMap.put("auditStatus", auditStatus);
        return super.getBy(paramMap);
    }
}